package com.zhanghe.study.springmvc.controller.exception;

import com.zhanghe.study.springmvc.exception.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zh
 * @date 2021/6/9 11:55
 */
@Controller
@RequestMapping("/exception")
public class ExceptionController2 {
    @RequestMapping("/testBusinessException2")
    @ResponseBody
    public String testBusinessException(){
        throw new BusinessException();
    }
}
